/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.biz.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author yiwei.he
* @date 2024-06-18
**/
@Data
@TableName("tz_junior_dict")
public class JuniorDict implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增id")
    private Long id;

    @ApiModelProperty(value = "院校代码")
    private String ucode;

    @ApiModelProperty(value = "院校名称")
    private String uname;

    @ApiModelProperty(value = "专业代码")
    private String pcode;

    @ApiModelProperty(value = "专业名称")
    private String pname;

    @ApiModelProperty(value = "科类【1：文科 2：理科】")
    private Integer subjectType;

    @ApiModelProperty(value = "最低分数线【省控线】")
    private Double minScore;

    @ApiModelProperty(value = "平均分数线")
    private Double avgScore;

    @ApiModelProperty(value = "最高分数线")
    private Double maxScore;

    @ApiModelProperty(value = "录取人数")
    private Integer planNum;

    @ApiModelProperty(value = "最低位次")
    private Integer minSort;

    @ApiModelProperty(value = "平均位次")
    private Integer avgSort;

    @ApiModelProperty(value = "最高位次")
    private Integer maxSort;

    public void copy(JuniorDict source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
